package com.kingdee.spider.model;

import java.util.Stack;

public class RestoreStack<T> {

	private Stack<T> stack;

	public RestoreStack() {
		super();
		stack = new Stack<T>();
	}

	public void save(T currentType) {
		stack.push(currentType);
	}

	public T loadCurrentType() {
		return stack.pop();
	}
}